import multiprocessing


class MultiProcessBasic:
    def __init__(self, number_process, func, *args):
        self._number_process = number_process
        self._process_list = [multiprocessing.Process(target=func, args=(*args, )) for i in range(number_process)]

    def start(self):
        for p in self._process_list:
            p.start()
        for p in self._process_list:
            p.join()
